package com.haima.sage.bigdata.api.entity.storage;


import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import com.haima.sage.bigdata.api.entity.api.data.cases.ConfigType;
import com.haima.sage.bigdata.api.entity.api.data.cases.ConfigTypeConvert;

@Entity()
@Table(name="t_storage")
public class Storage {
    @Id
    private String id;
    private String name;
    @Convert(converter = ConfigTypeConvert.class)
    private ConfigType type;
    @Lob
    @Column(nullable = false)
    private String data;

    public ConfigType getType() {
        return type;
    }

    public void setType(ConfigType type) {
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
